package com.atguigu.spyx.model.common;

import lombok.Getter;

/**
 * @author LT
 * @create 2023-10-31-19:09
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(200,"SUCCESS"),
    ERROR(-1,"未知错误"),
    LOGIN_ERROR(201,"用户名或密码错误"),
    LOGIN_CODE_ERROR(202,"验证码错误"),
    LOGIN_EXPIRE_ERROR(203,"登录状态失效"),
    FILE_UPLOAD_ERROR(301,"上传头像错误"),
    FILE_DELETE_ERROR(302,"删除头像错误"),
    MENU_DELETE_ERROR(401,"删除菜单错误"),
    FILE_EXPORT_ERROR(501,"分类文件导出错误"),

    MSG_SEND_ERROR(10001, "验证码发送错误"),
    MOBILE_ERROR(601, "手机号输入异常"),
    MOBILE_EXIST_ERROR(602, "手机号已被注册"),
    MSG_LIMIT_ERROR(10002, "短信发送条数上限"),
    MSG_TIMES_ERROR(10003,"发送短信频繁" ),
    ORDER_SUBMIT_ERROR(1001, "订单提交失败"),
    SKU_STOCK_ERROR(1002,"库存校验失败" ),
    SKU_PRICE_ERROR(1003, "商品价格校验失败");


    private Integer code;
    private String message;

    private ResultCodeEnum(Integer code,String message){
        this.code = code;
        this.message = message;
    }


}
